
var host = process.argv[2] || '192.168.8.106:9999';

var express=require('express');
var proxy = require('http-proxy-middleware');

var route = express();

route.use('/FK_portals_cq', proxy({
    target: `http://${host}/FK_portals_cq`, // target host
    changeOrigin: true
}));

route.use('/', express.static('./src'));

var port = 8000;
route.listen(port);
console.log('server listened at '+port);